package org.example;

import org.example.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        //User userEntity = (User) context.getBean("userEntity");
        //System.out.println(userEntity);
        UserService userService = (UserService) context.getBean("userService");
        System.out.println(userService);
    }
}
